package com.cat.model.biz.service.bs;

import java.util.List;

import com.cat.model.common.enumerator.TargetType;
import com.cat.model.common.model.common.UserFavoriteVO;

public interface UserFavoriteBS {
	/**
	 * 添加新收藏
	 * */
	UserFavoriteVO addUserFavorite(Long userId, Long targetId, TargetType targetType);
	
	/**
	 * 删除收藏
	 * */
	boolean delUserFavorite(Long userId, Long targetId, TargetType targetType);
	
	/**
	 * 收藏列表
	 * */
	List<UserFavoriteVO> getUserFavoriteList(Long userId, TargetType targetType);

	int getTargetFavoriteCount(Long targetId, TargetType targetType);

	boolean isUserFavorite(Long userId, Long targetId, TargetType targetType);
}
